#ifndef MESSAGEPICKER_H
#define MESSAGEPICKER_H

#include <QDialog>
#include "messagepickerstandarditemmodel.h"
#include "messageservice.h"

namespace Ui {
class MessagePicker;
}

class MessagePicker : public QDialog
{
    Q_OBJECT

public:
    explicit MessagePicker(QWidget *parent = nullptr);
    ~MessagePicker();

    void setWidgetType(MessagePickerStandardItemModel::WidgetType widgetType);

    void showAndInit(QPushButton *button);

    void setTicketAdjustType(int ticketAdjustType);

signals:
    void importMessageSelected(Message *message);

private:
    Ui::MessagePicker *ui;

    MessageService messageService;
    MessagePickerStandardItemModel *model;

    MessagePickerStandardItemModel::WidgetType widgetType;
    int ticketAdjustType;
};

#endif // MESSAGEPICKER_H
